#include<iostream>
#include<unistd.h>
#include<thread>

// 来看看Cpp语言级的线程库
void  handler()
{
    std::cout << "我是新线程" << std::endl;
    sleep(1);

}



int main()
{
    std::thread threads(handler);
   
    std::cout << "我是老线程" << std::endl;
    threads.join();

    return 0;
}